package org.study.screw.boot.startup;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import org.study.screw.boot.util.ScrewUtils;

import javax.sql.DataSource;

/**
 * 作用描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年05月26日
 */
@Slf4j
@RequiredArgsConstructor
@Component
public class MyCommandLineRunner implements CommandLineRunner {
    private final DataSource dataSource;

    @Override
    public void run(String... args) throws Exception {
        ScrewUtils.configuration(dataSource);
    }
}
